from brian import *
from Constants import *
import NeuronFactory as NeuronFac

Factory = NeuronFac.NeuronFactory()

Grp=Factory.init(20, 20)
RGGrp=Factory.RGGroup
INGrp=Factory.INGroup
net = Network(Grp)

RG_self=Connection(RGGrp,RGGrp,'ge', weight=gSynE*0.0125,
                   sparseness=1, structure='dense', max_delay= 10 *ms,
                   delay= lambda i,j:2*ms+randn(20)*0.3*ms);
net.add(RG_self)
traceIN=StateMonitor(Grp,'vm',record=[0])
net.add(traceIN)
net.run(100*ms)